import Axios from "axios"

export default class admexpressage {
    static admexp = null

    static getInstance(){
        if(this.admexp == null){
            this.admexp = new admexpressage()
        }
        return this.admexp
    }
    //高级查询
    list(adm){
        return Axios.get(`http://localhost/admexpressage/all`,{params:adm});
    }
    //根据Id查询
    listByid(id){
        return Axios.get(`http://localhost/admexpressage/${id}`)
    }
    //添加员工
    save(exp){
        return Axios.post("http://localhost/admexpressage/add",exp)
    }
    //修改
    update(exp){
        return Axios.put("http://localhost/admexpressage/update",exp)
    }
    //删除
    remove(id){
        return Axios.delete(`http://localhost/admexpressage/${id}`)
    }
}